package gov.pbc.nn.core;

import com.bstek.dorado.core.io.ResourceLoader;
import com.bstek.dorado.core.pkgs.PackageConfigurer;

public class PbcnnCoreConfigurer implements PackageConfigurer {

	@Override
	public String[] getPropertiesConfigLocations(ResourceLoader resourceLoader)
			throws Exception {
		return new String[] {
				"classpath:gov/pbc/nn/core/config/pbcnn-core.properties",
				"classpath:gov/pbc/nn/uflo/config/uflo.properties" };
	}

	@Override
	public String[] getContextConfigLocations(ResourceLoader resourceLoader)
			throws Exception {
		String datasourceCore = "classpath:gov/pbc/nn/core/config/pbcnn-core-datasource.xml";
		String contextCore = "classpath:gov/pbc/nn/core/config/pbcnn-core-context.xml";
		String contextUflo = "classpath:gov/pbc/nn/uflo/config/uflo-context.xml";

		return new String[] { contextCore, contextUflo, datasourceCore };
	}

	@Override
	public String[] getServletContextConfigLocations(
			ResourceLoader resourceLoader) throws Exception {
		return new String[] { "classpath:gov/pbc/nn/core/config/pbcnn-core-servlet.xml" };
	}

}
